home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / vap / comm.h next >
C/C++ Source or Header  |  1996-07-10  |  2KB  |  76 lines

  1. /*****************************************************************************
  2.  *
  3.  * Program Name:  SAP_Module
  4.  *
  5.  * Filename:      comm.h
  6.  *
  7.  * Version:          1.0
  8.  *
  9.  * Programmers:      Bryan Sparks
  10.  *
  11.  * Comments:      Typedefs and such for IPX and SPX communications.
  12.  *
  13.  ****************************************************************************/
  14. struct    IPXAddress
  15. {
  16.     unsigned char    Network[4];    /* high-low */
  17.     unsigned char    Node[6];    /* high-low */
  18.     unsigned int     Socket;        /* high-low */
  19. };
  20.  
  21. typedef struct IPXPacketStructure
  22. {
  23.     unsigned int                PacketCheckSum;            /* high-low */
  24.     unsigned int                PacketLength;            /* high-low */
  25.     unsigned char                PacketTransportControl;
  26.     unsigned char                PacketType;
  27.     struct IPXAddress            Destination;
  28.     struct IPXAddress            Source;
  29. } IPXPacket;
  30.  
  31. typedef struct SPXPacketStructure
  32. {
  33.     unsigned int                PacketCheckSum;            /* high-low */
  34.      unsigned int                PacketLength;            /* high-low */
  35.     unsigned char                PacketTransportControl;
  36.     unsigned char                PacketType;
  37.     struct IPXAddress            Destination;
  38.     struct IPXAddress            Source;
  39.     unsigned char                ConnectionControl;
  40.     unsigned char                DatastreamType;
  41.     unsigned int                SourceConnectionID;        /* high-low */
  42.     unsigned int                DestinationConnectionID;    /* high-low */
  43.     unsigned int                SequenceNumber;            /* high-low */
  44.     unsigned int                AcknowledgeNumber;         /* high-low */
  45.     unsigned int                AllocationNumber;        /* high-low */
  46. } SPXPacket;
  47.  
  48. struct    ECBFragment
  49. {
  50.     char far             *Address; 
  51.     unsigned int        Size;             /* low-high */
  52. };
  53.  
  54. typedef struct ECBStructure 
  55. {
  56.     unsigned int                Link[2];                
  57.     char far                    *ESRAddress;            /* offset-segment */
  58.     unsigned char                InUseFlag;
  59.     unsigned char                CompletionCode;
  60.     unsigned int                ECBSocket;                /* high-low */
  61.     unsigned char                IPXWorkspace[4];        
  62.     unsigned char                DriverWorkspace[12];    
  63.     unsigned char                ImmediateAddress[6];    /* high-low */
  64.     unsigned int                FragmentCount;            /* low-high */
  65.     struct ECBFragment            FragmentDescriptor[2];
  66. } ECB;
  67.  
  68. typedef struct SAPDataStructure
  69. {
  70.     unsigned int        InfoType;
  71.     unsigned int        ServerType;
  72.     unsigned char        ServerName[48];
  73.     struct IPXAddress    Address;
  74.     unsigned int         IntermediateNetworks;
  75. } SAPData;
  76.